package com.cug.campus_sh_market_server.entity.param.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cug.campus_sh_market_server.entity.po.BaseEntity;
import com.cug.campus_sh_market_server.util.QueryWrapperUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author sxt
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Goods对象", description="商品")
public class GoodsQueryParam extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "商品名称")
    @QueryWrapperUtil.NeedLike
    private String goodsName;

    @ApiModelProperty(value = "商品类别")
    private Integer goodsType;

    @ApiModelProperty(value = "新旧程度")
    private Float depreciationDegree;

    @ApiModelProperty(value = "商品状态（0: 上架, 1: 下架, 2: 已售出）")
    private Integer status;

}
